﻿@model IEnumerable<NetCoreQrCoreDemo.Models.MyArticle>

@{
    ViewData["Title"] = "文章列表";
}

<h1>文章列表</h1>

<p>
    <a asp-action="Editer">新增文章</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.title)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.date)
            </th><th>
    @Html.DisplayNameFor(model => model.updatetime)
</th>
            <th>
                @Html.DisplayNameFor(model => model.status)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.title)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.date)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.updatetime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.status)
            </td>
            <td>
                @Html.ActionLink("查看", "LoadArticle", new { id = item._id }) |
                @Html.ActionLink("编辑", "Editer", new { id = item._id })
            </td>
        </tr>
}
    </tbody>
</table>
